package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;

/**
 * 商品可核销商户实体类<br>
 * 对应的表为：pro_spu_merchant_ref<br>
 * 
 * @author px
 * @date 2019-04-17 14:44:42
 * @company sgy
 * @version 2.0
 */
@TableName("pro_spu_merchant_ref")
@ApiModel(description = "商品可核销商户")
public class SpuMerchantRefEntity {

    /**  */
	protected String id;

    /**  */
	protected String spuId;

    /**  */
	protected String merchantId;

	/**
	 * 构造一个空商品可核销商户实体对象
	 */
	public SpuMerchantRefEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商品可核销商户实体对象
	 * 
	 * @param other 其它对象
	 */
	public SpuMerchantRefEntity(SpuMerchantRefEntity other){
		super();
     	this.id = other.id;
     	this.spuId = other.spuId;
     	this.merchantId = other.merchantId;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 * 
	 * @return spuId 
	 */
	public String getSpuId() {
		return spuId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param spuId 
	 */
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取
	 * 
	 * @return merchantId 
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param merchantId 
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

    public String toString() {
		return new StringBuilder().append("SpuMerchantRefEntity{").
			append("id=").append(id).
			append(",spuId=").append(spuId).
			append(",merchantId=").append(merchantId).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public SpuMerchantRefEntity copy() {
		return new SpuMerchantRefEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /**  */
	public static final String COL_SPU_ID = "spu_id";

    /**  */
	public static final String COL_MERCHANT_ID = "merchant_id";
}
